//
//  DEWSafeModel.m
//  OtherDemo
//
//  Created by lianjie on 2018/7/29.
//  Copyright © 2018年 lianjie. All rights reserved.
//

#import "DEWSafeModel.h"

@implementation DEWSafeModel


-(NSAttributedString *)contentText
{
    NSMutableAttributedString *attribute = [[NSMutableAttributedString alloc]initWithString:self.content];
    
    [attribute setAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"Heiti SC" size:13],NSForegroundColorAttributeName:Color_66} range:NSMakeRange(0, self.content.length)];
    
    return attribute;
}



-(CGFloat)cellHeight
{
    CGSize attSize = [self.contentText boundingRectWithSize:CGSizeMake(DEWScreenWidth-60, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin context:nil].size;
    return attSize.height+90;
}


@end
